import React, {Component} from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter, Route } from 'react-router-dom';
import store from './store'

import Header from './header'
import Home from './pages/home'

class App extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
        <Provider store ={store}>
          <BrowserRouter>
            <div>
              <Header />
              <Route path='/' exact component={Home}></Route>
            </div>
          </BrowserRouter>
        </Provider>
    );
  }
}

export default App;
